﻿#region

using System.Collections.Generic;
using BusinessObjects;
using DataAccessLayer;

#endregion

namespace BusinessLogicLayer
{
    public static class SubsidiaryBLL
    {
        /// <summary>
        ///     Get all subsidiaries
        /// </summary>
        /// <returns>List of subsidiaries</returns>
        public static List<Subsidiary> GetAllSubsidiaries()
        {
            return SubsidiaryDAL.GetAllSubsidiaries();
        }

        /// <summary>
        ///     Get city id by subsidiary id
        /// </summary>
        /// <param name="subsidiaryId">Represent's the subsidiary id</param>
        /// <returns>City id</returns>
        public static byte GetCityIdBySubsidiaryId(int subsidiaryId)
        {
            return SubsidiaryDAL.GetCityIdBySubsidiaryId(subsidiaryId);
        }

        /// <summary>
        ///     Get all subsidiaries with Name
        /// </summary>
        /// <returns>List of subsidiaries</returns>
        public static List<Subsidiary> GetAllSubsidiariesWithName()
        {
            return SubsidiaryDAL.GetAllSubsidiariesWithName();
        }

        /// <summary>
        ///     Get all subsidiaries under a district
        /// </summary>
        /// <param name="districtId">Represent's the district Id</param>
        /// <returns>List of subsidiaries</returns>
        public static List<Subsidiary> GetAllSubsidiariesWithName(int districtId)
        {
            return SubsidiaryDAL.GetAllSubsidiariesWithName(districtId);
        }
    }
}